Closed loop auditory stimulation during sleep